package com.xnyzc.lhy.mis.entity.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "新PriceParam对象", description = "PriceParam对象")
public class NewBillRules  implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "规则id（主键）")
    private Long ruleId;

    @ApiModelProperty(value = "城市ID")
    private Integer areaId;

    @ApiModelProperty(value = "规则组ID")
    private Long groupId;

    @ApiModelProperty(value = "公司ID")
    private Long officeId;

    @ApiModelProperty(value = "叫车方式")
    private Integer callType;

    @ApiModelProperty(value = "规则名称")
    private String rulesName;

    @ApiModelProperty(value = "保险费")
    private Double premium;

    @ApiModelProperty(value = "车型")
    private Integer vehicleType;

    @ApiModelProperty(value = "渠道ID")
    private Integer channel;

    @ApiModelProperty(value = "可否抢单")
    private Integer robable;

    @ApiModelProperty(value = "可否抢单")
    private Integer deleted;

    @ApiModelProperty(value = "平台分成比例")
    private Integer drawRatio;

    @ApiModelProperty(value = "费用集合")
    private List<RulesParam> fees;

    @ApiModelProperty(value = "费用集合")
    private String jsonRules;

    public static final String AREA_ID = "area_id";
    public static final String GROUP_ID = "group_id";
    public static final String CHANNEL = "channel";
    public static final String CALL_TYPE = "call_type";
    public static final String DELETED = "deleted";
    public static final String VEHICLE_TYPE = "vehicle_type";

    @Override
    public String toString() {
        return "NewBillRules{" +
                "ruleId=" + ruleId +
                ", areaId=" + areaId +
                ", groupId=" + groupId +
                ", officeId=" + officeId +
                ", callType=" + callType +
                ", ruleName='" + rulesName + '\'' +
                ", premium=" + premium +
                ", channel=" + channel +
                ", robable=" + robable +
                ", deleted=" + deleted +
                ", drawRatio=" + drawRatio +
                '}';
    }
}
